<?php

include "conn.php";

if (isset($_POST["tel"]) && isset($_POST["pass"])) {
    $tel = $_POST["tel"];
    $pass = sha1($_POST["pass"]);
    $result = $conn->query("SELECT * FROM registry WHERE tel='$tel' and pass='$pass'");
    if ($result->fetch_assoc()) {
        echo "true";
    } else {
        echo "false";
    }
}
